class Dog extends Aminal{
}

public class Aminal {
    public String name;
    public int age;
    public Dog[] dogs = new Dog[10];
}